I'm learning html and I'm confused as to how href's work. [migrated]

Posted by Robolisk on Programmers See other posts from Programmers or by Robolisk
Published on 2011-06-21T01:34:19Z Indexed on 2011/06/21 8:30 UTC
Read the original article Hit count: 389

Filed under:
|

Okay so i'm learning html right now and soon css. In my html coding I have a section like this for navigation:

<div id="header">
<h1>Guild Wars 2 Fanbase</h1>
<ol id="navigation">
    <li><a href="/">Home</a></li>
    <li><a href="/facts">Facts</a></li>
    <li><a href="/gallery">Gallery</a></li>
    <li><a href="/code">Coding</a>
        <ul><li><a href="/code/line">Lines</a></li>
            <li><a href="/code/comment">Comment Lines</a></li>
    </ul>
    </li>
</ol></div>

Now when I open up this .html file this is all layed out the way I want it too look (the mark up that is). My question is this, when I click on a link on this site (this site being this code) I get an a error saying this webpage is not found, but of course. But how do I create it so I can have the web pages working together? I'm not sure how to word it correctly. Like, do I create another .html file in the same directory so somehow when I click the link it reads from the second .html file?

If you not sure what I'm asking, just let me know and I'll try to be more specific. Thank you for your help (:

excuse my mistakes in grammar, not the worlds best in English, trying my best (:

© Programmers or respective owner

Related posts about html

Related posts about markup